
import java.awt.*;
public class TestGraphics
{
	public static void main(String [] args)
	{
		new T().tt();
	}
}

class T extends Frame
{
	public void tt()
	{
		setBounds(300,300,300,170);
		setVisible(true);
	}
	public void paint(Graphics g)
	{
		Color c=g.getColor();
		g.setColor(Color.red);
		g.fillOval(50,50,50,60);
		g.setColor(Color.green);
		g.fillRect(80,80,40,40);
		g.setColor(c);
	}
}